 
<script>

var file_names = ''
var img_arr = [];
var idx = 0
$(function() {
	
	var img_type = ''
	var img_limit = 5
	var img_size  = 0.5 
	Main.uploadInit('#file',sep+'/ajax.php?act=uploader&path=admin',true,img_limit,img_type,img_size)
	
	
})


</script> 


<article class="module width_3_quarter">
  <header>
    <h3 class="tabs_involved">邮件服务器</h3>
  </header>
  <div class="tab_container" >
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
            <th width="200px;">类型</th>
            <th width="20px;"> SSL </th>
            <th width="120px;"> SMTP server</th>
            <th width="120px;">SMTP port</th>
            <th width="120px;">账号</th>
            <th width="120px;">密码</th>
            <th width="80px;">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Mail Services :
              <input type="radio" name="mail_service" value="1" {{if $cfg.email.service_type==1}} checked="checked"{{/if}}/>
              /
              SMTP Service :
              <input type="radio" name="mail_service" value="2" {{if $cfg.email.service_type==2}} checked="checked"{{/if}}></td>
            <td><input type="checkbox"  name="smtp_ssl"{{if $cfg.email.smtp_ssl}} checked="checked"{{/if}} /></td>
            <td><input type="text" id="smtp_server" value="{{$cfg.email.smtp_server}}"/></td>
            <td><input type="text" id="smtp_port" value="{{$cfg.email.smtp_port}}"/></td>
            <td><input type="text" id="account" value="{{$cfg.email.account}}"/></td>
            <td><input type="password" id="passwd" value="{{$cfg.email.passwd}}"/></td>
            <td><input type="submit" class="alt_btn" value="保存" onclick="AD.emailSet()"></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!-- end of #tab1 --> 
    
  </div>
  <!-- end of .tab_container --> 
  
</article>
<article class="module width_3_quarter">
  <header>
    <h3 class="tabs_involved">测试邮件</h3>
  </header>
  <div class="tab_container" >
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
            <th width="120px;">Email</th>
            <th width="120px;"> 内容 </th>
            <th width="120px;">附件</th>
            <th width="80px;">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td ><input type="text" id="test_account"/></td>
            <td><input type="text" id="test_content"/></td>
            <td><span id="file"></span> <span id="file_res"></span></td>
            <td><input type="submit" class="alt_btn" value="发送" onclick="AD.testMail()"></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!-- end of #tab1 --> 
    
  </div>
  <!-- end of .tab_container --> 
  
</article>

{{include file="./mail_templates.htm"}}